Optimal. Leaf size=46 \[ -\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-\tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.059482, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.259, Rules used = {850, 844, 217, 203, 266, 63, 208} \[ -\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-\tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 850
Rule 844
Rule 217
Rule 203
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\sqrt{d^2-e^2 x^2}}{x (d+e x)} \, dx &=\int \frac{d-e x}{x \sqrt{d^2-e^2 x^2}} \, dx\\ &=d \int \frac{1}{x \sqrt{d^2-e^2 x^2}} \, dx-e \int \frac{1}{\sqrt{d^2-e^2 x^2}} \, dx\\ &=\frac{1}{2} d \operatorname{Subst}\left (\int \frac{1}{x \sqrt{d^2-e^2 x}} \, dx,x,x^2\right )-e \operatorname{Subst}\left (\int \frac{1}{1+e^2 x^2} \, dx,x,\frac{x}{\sqrt{d^2-e^2 x^2}}\right )\\ &=-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-\frac{d \operatorname{Subst}\left (\int \frac{1}{\frac{d^2}{e^2}-\frac{x^2}{e^2}} \, dx,x,\sqrt{d^2-e^2 x^2}\right )}{e^2}\\ &=-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-\tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )\\ \end{align*}
Mathematica [A] time = 0.0426394, size = 46, normalized size = 1. \[ -\log \left (\sqrt{d^2-e^2 x^2}+d\right )-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )+\log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.063, size = 137, normalized size = 3. \begin{align*}{\frac{1}{d}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}-{d\ln \left ({\frac{1}{x} \left ( 2\,{d}^{2}+2\,\sqrt{{d}^{2}}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}} \right ) } \right ){\frac{1}{\sqrt{{d}^{2}}}}}-{\frac{1}{d}\sqrt{- \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) }}-{e\arctan \left ({x\sqrt{{e}^{2}}{\frac{1}{\sqrt{- \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) }}}} \right ){\frac{1}{\sqrt{{e}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55558, size = 111, normalized size = 2.41 \begin{align*} 2 \, \arctan \left (-\frac{d - \sqrt{-e^{2} x^{2} + d^{2}}}{e x}\right ) + \log \left (-\frac{d - \sqrt{-e^{2} x^{2} + d^{2}}}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- \left (- d + e x\right ) \left (d + e x\right )}}{x \left (d + e x\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23569, size = 65, normalized size = 1.41 \begin{align*} -\arcsin \left (\frac{x e}{d}\right ) \mathrm{sgn}\left (d\right ) - \log \left (\frac{{\left | -2 \, d e - 2 \, \sqrt{-x^{2} e^{2} + d^{2}} e \right |} e^{\left (-2\right )}}{2 \,{\left | x \right |}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]